package com.moguo.managementsystembackend.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.moguo.managementsystembackend.model.User;

import javax.servlet.http.HttpServletRequest;

/**
* @author Administrator
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-05-04 01:28:42
*/
public interface UserService extends IService<User> {


    /*
    用户注册
     */
    long userRegister(String userAccount,String userPassword,String checkpassword);

    /*
    用户登录
     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    /**
    * @Description: 用户脱敏
    * @Param: [originUser]
    * @return: com.moguo.managementsystembackend.model.User
    * @Author: moguo
    * @Date: 2024/5/4
    */

    User getSafetyUser(User originUser);
}
